<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Title</title>

    <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js"></script>
    <script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../static/js/province.js" th:src="@{/js/province.js}"></script>
    <style>
        select{
            float: left;
            text-align: center;
        }

    </style>
</head>
<body>



<div  style="width: 100%;margin: 0 auto;">
    <select class="form-control col-lg-4" id="province"><option id="yi" style="width: 20px;">---请选择---</option></select>
    <select class="form-control col-lg-4" id="citys"><option  style="width: 20px;">---请选择---</option></select>
    <select class="form-control col-lg-4" id="countys"><option  style="width: 20px;">---请选择---</option></select>
</div>




</body>

<script th:inline="javascript">
    f([[${provinces}]]);/*获取视图传过来的json*/
</script>
</html>